# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Celeste <cielesti@protonmail.com>
pkgname=translate-shell
pkgver=0.9.7.1
pkgrel=1
pkgdesc="Command-line online translator"
url="https://www.soimort.org/translate-shell/"
arch="noarch"
license="Unlicense"
depends="bash gawk"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/soimort/translate-shell/archive/v$pkgver.tar.gz
	drop-rlwrap-emacs-tests.patch
	"
options="!check" # requires 3rdparty http request to pass

build() {
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" PREFIX=/usr install
}

sha512sums="
d25a6177ee5b9d41715042b653ad345d1c76884423700f0fe53bc2ffddd6d3c14844fa4e768b87b055018794a8c4057c329810c65764e7f9aa425ceac35f0810  translate-shell-0.9.7.1.tar.gz
9eae49f31e709c4802bd8952abddf98445129b793394289afddef96bf790e84065abe6b808ce19fda933a141dfc92522d38777c8310243185db7880954aff85c  drop-rlwrap-emacs-tests.patch
"
